package com.yuwenxin.bean;

import java.util.Date;

public class Notice {
    private int id;
    private String noticeTitle;
    private String context;
    private Date postDate;

    // 一个外键
    private int noticeUserId;
    private User poster;

    public String getNoticeTitle() {
        return noticeTitle;
    }

    public void setNoticeTitle(String noticeTitle) {
        this.noticeTitle = noticeTitle;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNoticeUserId() {
        return noticeUserId;
    }

    public void setNoticeUserId(int noticeUserId) {
        this.noticeUserId = noticeUserId;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Date getPostDate() {
        return postDate;
    }

    public void setPostDate(Date postDate) {
        this.postDate = postDate;
    }

    public User getPoster() {
        return poster;
    }

    public void setPoster(User poster) {
        this.poster = poster;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ", noticeTitle='" + noticeTitle + '\'' +
                ", context='" + context + '\'' +
                ", postDate=" + postDate +
                ", noticeUserId=" + noticeUserId +
                ", poster=" + poster +
                '}';
    }
}
